package com.project.sentinel;

import com.project.ncasoconfig.NacosConfiglProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Job {

    private static final Logger logger = LoggerFactory.getLogger(Job.class);

    @Autowired
    private NacosConfiglProperties properties;

    @Scheduled(fixedRate = 1000L)
    public void myProperties() {
        logger.info("user use.local.cache {}", properties.getUseLocalCache());
    }

}
